﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Yuyi.PluginForJS.JavaScriptLexer
{
    public class Token
    {
        public int kind;

        public int line;

        public int col;

        public string value;

        public object literalValue;

        public Token next;

        public Token(int kind):this(kind,0,0)
        { 
            
        }
        public Token(int kind, int col, int line)
            : this(kind, line, col, null)
        { 
        
        }
        public Token(int kind, int col ,int line,string value):this(kind,col,line,value,null)
        {
        }

        public Token(int kind, int col, int line,string value, object literalValue)
        {
            this.kind = kind;
            this.line = line;
            this.col = col;
            this.value = value;
            this.literalValue = literalValue;
        }
    }
}
